const getters = {
  // 后期使用可以进行相对简写 原写法：stroe.srate.getters.sidebar 现:store.getters.sidebar
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name
  // 完整写法为：
  // name()=>{
  //   return state.user.name
  // }

}
export default getters
